// src/router/index.js  
import { createRouter, createWebHistory } from 'vue-router'  
import Login from '../components/Login.vue'
import Home from '../components/Home.vue' 
import About from '../components/About.vue' 
import Fenlei from '../components/Fenlei.vue'
import Index from '../components/Index.vue'
import Gowuche from '../components/Gowuche.vue'
import Grzx from '../components/Grzx.vue'
import Register from '../components/Register.vue'
  
const routes = [  
  {  
    path: '/home',  
    name: 'Home',  
    component: Home,
    children:[
      {
        path:'fenlei',
        name:'Fenlei',
        component: Fenlei
      },
      {
        path:'index',
        name:'Index',
        component: Index
      },
      {
        path:'gowuche',
        name:'Gowuche',
        component: Gowuche
      },
      {
        path:'grzx',
        name:'Grzx',
        component: Grzx
      }
    ]
  },  
  {  
    path: '/about',  
    name: 'About',  
    component: About  
  },
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
        path:'/',
        name:'Register',
        component: Register
      } 
]  
  
const router = createRouter({  
  history: createWebHistory(),  
  routes  
})  
  
export default router